/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Employee.java
 *
 * Created on 24 ธ.ค. 2552, 18:15:29
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlEditEmployee extends javax.swing.JPanel {

    /** Creates new form Employee */
    public PnlEditEmployee() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        lblEmCode = new javax.swing.JLabel();
        txtEmCode = new javax.swing.JTextField();
        lblEmAddress = new javax.swing.JLabel();
        lblEmName = new javax.swing.JLabel();
        txtEmName = new javax.swing.JTextField();
        lblEmLast = new javax.swing.JLabel();
        txtEmLast = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        txtEmPhone = new javax.swing.JTextField();
        lblEmMail = new javax.swing.JLabel();
        txtlEmMail = new javax.swing.JTextField();
        lblFunCode = new javax.swing.JLabel();
        cbbEmFunction = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        txaEmAddress = new javax.swing.JTextArea();
        lblEmProvince = new javax.swing.JLabel();
        txtEmZip = new javax.swing.JTextField();
        cbbEmProvince = new javax.swing.JComboBox();
        lblEmZip = new javax.swing.JLabel();
        lblEmDate = new javax.swing.JLabel();
        txtEmDate = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        lblHeadEditEm = new javax.swing.JLabel();
        btnEmEditSave = new javax.swing.JButton();
        btnEmEditCancel = new javax.swing.JButton();
        btnEmEditDel = new javax.swing.JButton();
        btnEmPrint = new javax.swing.JButton();

        setBackground(new java.awt.Color(204, 255, 204));
        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        jPanel2.setPreferredSize(new java.awt.Dimension(712, 404));

        lblEmCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmCode.setText("รหัสพนักงาน :");

        txtEmCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblEmAddress.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmAddress.setText("ที่อยู่ :");

        lblEmName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmName.setText("ชื่อ :");

        txtEmName.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblEmLast.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmLast.setText("นามสกุล :");

        txtEmLast.setFont(new java.awt.Font("Tahoma", 0, 12));

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel6.setText("เบอร์โทรศัพท์ :");

        txtEmPhone.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblEmMail.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmMail.setText("อีเมลล์ :");

        txtlEmMail.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblFunCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFunCode.setText("หน้าที่ :");

        cbbEmFunction.setFont(new java.awt.Font("Tahoma", 0, 12));

        txaEmAddress.setColumns(15);
        txaEmAddress.setFont(new java.awt.Font("Tahoma", 0, 12));
        txaEmAddress.setRows(2);
        jScrollPane1.setViewportView(txaEmAddress);

        lblEmProvince.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmProvince.setText("จังหวัด :");

        txtEmZip.setFont(new java.awt.Font("Tahoma", 0, 12));

        cbbEmProvince.setFont(new java.awt.Font("Tahoma", 0, 12));
        cbbEmProvince.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "กระบี่ ", "กรุงเทพมหานคร ", "กาญจนบุรี ", "กาฬสินธุ์ ", "กำแพงเพชร  ", "ขอนแก่น ", "จันทบุรี ", "ฉะเชิงเทรา ", "ชลบุรี", "ชัยนาท ", "ชัยภูมิ ", "ชุมพร ", "เชียงราย", "เชียงใหม่ ", "ตรัง ", "ตราด ", "ตาก ", "นครนายก ", "นครปฐม ", "นครพนม", "นครราชสีมา ", "นครศรีธรรมราช ", "นครสวรรค์", "นนทบุรี ", "นราธิวาส ", "น่าน ", "บุรีรัมย์ ", "ปทุมธานี ", "ประจวบคีรีขันธ์ ", "ปราจีนบุรี ", "ปัตตานี ", "พระนครศรีอยุธยา ", "พะเยา ", "พังงา ", "พัทลุง ", "พิจิตร ", "พิษณุโลก ", "เพชรบุรี", "เพชรบูรณ์ ", "แพร่ ", "ภูเก็ต ", "มหาสารคาม ", "มุกดาหาร ", "แม่ฮ่องสอน ", "ยโสธร", "ยะลา ", "ร้อยเอ็ด ", "ระนอง", "ระยอง ", "ราชบุรี ", "ลพบุรี ", "ลำปาง ", "ลำพูน ", "เลย", "ศรีสะเกษ ", "สกลนคร ", "สงขลา", "สตูล", "สมุทรปราการ ", "สมุทรสงคราม ", "สมุทรสาคร  ", "สระแก้ว ", "สระบุรี ", "สิงห์บุรี ", "สุโขทัย ", "สุพรรณบุรี ", "สุราษฎร์ธานี", "สุรินทร์ ", "หนองคาย ", "หนองบัวลำภู ", "อ่างทอง ", "อำนาจเจริญ ", "อุดรธานี ", "อุตรดิตถ์ ", "อุทัยธานี ", "อุบลราชธานี ", " " }));

        lblEmZip.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmZip.setText("รหัสไปรษณีย์ :");

        lblEmDate.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmDate.setText("วัน/เดือน/ปี เกิด :");

        txtEmDate.setFont(new java.awt.Font("Tahoma", 0, 12));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblEmMail)
                    .addComponent(lblEmProvince)
                    .addComponent(lblEmLast)
                    .addComponent(lblEmName)
                    .addComponent(lblEmCode)
                    .addComponent(lblEmDate)
                    .addComponent(lblFunCode)
                    .addComponent(lblEmAddress)
                    .addComponent(lblEmZip)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txtEmLast, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtEmName, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtEmCode, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txtEmPhone, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtEmZip, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(cbbEmProvince, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(cbbEmFunction, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                        .addComponent(txtlEmMail, javax.swing.GroupLayout.Alignment.LEADING))
                    .addComponent(txtEmDate, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE))
                .addGap(421, 421, 421))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEmCode)
                    .addComponent(txtEmCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(txtEmName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEmName))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(txtEmLast, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEmLast))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEmDate)
                    .addComponent(txtEmDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblEmAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addComponent(lblEmProvince))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cbbEmProvince, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEmZip)
                    .addComponent(txtEmZip, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel6)
                    .addComponent(txtEmPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblEmMail)
                    .addComponent(txtlEmMail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbEmFunction, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFunCode))
                .addContainerGap(122, Short.MAX_VALUE))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);

        jPanel3.setBackground(new java.awt.Color(153, 255, 153));
        jPanel3.setMinimumSize(new java.awt.Dimension(700, 80));
        jPanel3.setPreferredSize(new java.awt.Dimension(700, 80));

        jPanel1.setBackground(new java.awt.Color(204, 255, 204));
        jPanel1.setMinimumSize(new java.awt.Dimension(700, 80));
        jPanel1.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditEm.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadEditEm.setText("ข้อมูลพนักงาน");

        btnEmEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnEmEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnEmEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnEmPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnEmPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnEmPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnEmPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadEditEm)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(0, 0, 0)
                        .addComponent(btnEmEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnEmEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnEmEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnEmPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadEditEm)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnEmPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEmEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEmEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEmEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(4, 4, 4))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        add(jPanel3, java.awt.BorderLayout.PAGE_START);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnEmEditCancel;
    private javax.swing.JButton btnEmEditDel;
    private javax.swing.JButton btnEmEditSave;
    private javax.swing.JButton btnEmPrint;
    private javax.swing.JComboBox cbbEmFunction;
    private javax.swing.JComboBox cbbEmProvince;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblEmAddress;
    private javax.swing.JLabel lblEmCode;
    private javax.swing.JLabel lblEmDate;
    private javax.swing.JLabel lblEmLast;
    private javax.swing.JLabel lblEmMail;
    private javax.swing.JLabel lblEmName;
    private javax.swing.JLabel lblEmProvince;
    private javax.swing.JLabel lblEmZip;
    private javax.swing.JLabel lblFunCode;
    private javax.swing.JLabel lblHeadEditEm;
    private javax.swing.JTextArea txaEmAddress;
    private javax.swing.JTextField txtEmCode;
    private javax.swing.JTextField txtEmDate;
    private javax.swing.JTextField txtEmLast;
    private javax.swing.JTextField txtEmName;
    private javax.swing.JTextField txtEmPhone;
    private javax.swing.JTextField txtEmZip;
    private javax.swing.JTextField txtlEmMail;
    // End of variables declaration//GEN-END:variables

}
